﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Downloader.Framework.Core;
using SharpArch.Domain.DomainModel;

namespace Downloader.Domain
{
    /// <summary>
    /// 文章内容
    /// </summary>
    public class ArticleContent : EntityBase
    {
        public  ArticleContent()
        {
            this.Category=new Category();
            this.CreateTime = DateTime.Now;
            this.ModifyTime=DateTime.Now;
        }
        /// <summary>
        /// 自定义URL
        /// </summary>
        public virtual  string Url { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>
        public virtual string Title { get; set; }
        /// <summary>
        /// 文章副标题
        /// </summary>
        public virtual string SubTitle { get; set; }
        /// <summary>
        /// 文章关键字
        /// </summary>
        public virtual string KeyWords { get; set; }

        /// <summary>
        /// 文章分类
        /// </summary>
        public virtual Category Category { get; set; }
        /// <summary>
        /// 版本信息
        /// </summary>
        public virtual string Version { get; set; }
        /// <summary>
        /// 附件大小
        /// </summary>
        public virtual float Size { get; set; }
        /// <summary>
        /// 文章介简
        /// </summary>
        public virtual string Introduction { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        [FieldLength(8001)]
        public virtual string ContentText { get; set; }
        ///// <summary>
        ///// 文章评论
        ///// </summary>
        //public virtual IList<Comment> Comment { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public virtual DateTime ModifyTime { get; set; }



    }
}
